﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebsiteAdmin.Wilson.ProInfo
{
    public partial class SeriesCreate : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(!IsPostBack)
            {
                BindCatList(Global.ConnWilson);
            }
        }

        protected void BindCatList(string strCon)
        {
            using (DataTable dt = Bll.Category.MULTIPLE(strCon))
            {
                if (dt != null && dt.Rows.Count > 0)
                {
                    this.repCatList.DataSource = dt.DefaultView;
                    this.repCatList.DataBind();
                }
            }
        }
    }
}
